#include<iostream>
#include<fstream>
char s1[] = "123456";
char s2[] = "abcdef";
char buff[20] = { 0 };
using namespace std;
ofstream outfile;
ifstream infile;
int main()
{
	outfile.open("1.txt", ios::out);
	outfile.write(s1, 6).write(s2, 6);
	outfile.close();
	infile.open("1.txt", ios::in);
	infile.getline(buff, 13);
	cout << buff;
	return 0;
}